/*****************************************************************************
 * Open MCT, Copyright (c) 2014-2016, United States Government
 * as represented by the Administrator of the National Aeronautics and Space
 * Administration. All rights reserved.
 *
 * Open MCT is licensed under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 *
 * Open MCT includes source code licensed under additional open source
 * licenses. See the Open Source Licenses file (LICENSES.md) included with
 * this source code distribution or the Licensing information page available
 * at runtime from the About dialog for additional information.
 *****************************************************************************/
.items-holder {
    @include clearfix;
    overflow-y: auto;
	.contents {
		top: 0;
	}
    .item {
        &.grid-item {
            $d: $ueBrowseGridItemLg;
            $iconMargin: 40px;
            $iconD: ($d - ($iconMargin * 2)) * 0.85;
            $transTime: 200ms;
            @include btnSubtle($bg: $colorItemBg, $bgHov: $colorItemBgHov, $fg: $colorItemFg, $fgHov: pullForward($colorItemFg, $hoverRatioPercent), $ic: $colorItemIc);
            box-sizing: border-box;
            cursor: pointer;
            float: left;
            height: $d;
            width: $d;
            margin-bottom: $interiorMarginSm;
            margin-right: $interiorMarginSm;
            position: relative;
            &:hover .item-main {
	            .item-type {
		            color: lighten($colorKey, 10%);
                    .l-icon-link {
                        color: $colorIconLink;
                    }
                }
	            .item-open {
                    opacity: 1;
	            }
            }
	        .contents {
                $m: $interiorMarginLg;
		        top: $m; right: $m; bottom: $m; left: $m;
	        }
            .bar {
                &.top-bar {
                    bottom: auto;
	                color: $colorItemSubIcons;
                    height: $ueBrowseGridItemTopBarH;
                    line-height: $ueBrowseGridItemTopBarH;
                    text-align: right;
	                z-index: 5;
	                .left, .right {
		                width: auto;
		                .icon {
			                margin-left: $interiorMarginSm;
                            &.l-icon-link {
                                color: $colorIconLink;
                            }
		                }
	                }
                }
                &.bottom-bar {
                    top: auto;
                    line-height: 110%;
                }
            }
            .item-main {
	            $h: $ueBrowseGridItemLg;
	            $lh: $h * 0.8;
                line-height: $lh;
	            z-index: 1;
                .item-type,
                .t-item-icon {
                    @include transform(translateX(-50%) translateY(-55%));
                    position: absolute;
                    top: 50%; left: 50%;
                    font-size: $iconD * 0.95;
                    &.l-icon-link {
                        .t-item-icon-glyph {
                            &:after {
                                @include transform(scale(0.25));
                            }
                        }
                    }
                }
                .item-open {
                    @include trans-prop-nice("opacity", $transTime);
                    opacity: 0;
	                color: $colorItemOpenIcon;
                    font-size: 3em;
                    left: auto; width: 50px;
                    pointer-events: none;
                    text-align: right;
                }
            }
            .title {
	            @include txtShdw($shdwItemText);
                @include ellipsize();
                color: $colorItemFg;
            }
            .details {
                @include txtShdw($shdwItemText);
                @include ellipsize();
	            color: $colorItemFgDetails;
                font-size: 0.8em;
            }
	        &.selected {
		        $cfg: lighten($colorItemBgSelected, 35%);
		        $cfgh: lighten($cfg, 30%);
		        @include btnSubtle($bg: $colorItemBgSelected);
		        color: $cfg;
		        .item-type, .top-bar .icon:not(.alert) { color: $cfg }
		        .item-main .item-open { color: $cfg }
		        .title { color: $cfgh; }
		        &:hover {
			        .item-main .item-type { color: $cfgh !important; }
		        }
	        }
        }
    }

}